package com.b2c.product.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import content.common.DateFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 品牌表
 *
 * @TableName mall_branch
 */
@TableName(value = "mall_branch")
@Data
public class Branch implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 品牌授权书
     */
    @TableField(value = "image")
    private String image;
    /**
     * 品牌logo
     */
    @TableField(value = "logo")
    private String logo;

    /**
     *
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = DateFormat.FORMAT_PATTERN_SECODE)
    @JsonFormat(pattern = DateFormat.FORMAT_PATTERN_SECODE)
    private LocalDateTime createtime;
    /**
     * 商家id
     */
    @TableField(value = "admin_id")
    private Integer adminId;
    /**
     *
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern = DateFormat.FORMAT_PATTERN_SECODE)
    @JsonFormat(pattern = DateFormat.FORMAT_PATTERN_SECODE)
    private LocalDateTime updatetime;

    /**
     * 逻辑删除
     */
    @TableField(value = "status")
    private String status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}